package com.wus.system.api;

import com.wus.common.core.domain.base.Result;
import com.wus.common.core.domain.user.AccountInfo;
import com.wus.system.request.LoginUserReq;
import com.wus.system.request.OperLogReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Description: 接口feign调用
 * @Author: wus
 * @Date: 2024/12/8 23:56
 */
@FeignClient("system")
public interface SystemApiService {

    @PostMapping("/system/user/login")
    Result<AccountInfo> login(LoginUserReq req);

    @PostMapping("/system/operLog/add")
    Result<AccountInfo> addLog(OperLogReq event);
}
